package com.powernode.business.service;

import com.powernode.business.domain.Customer;
import com.powernode.business.vo.AreaVo;
import com.powernode.common.core.domain.model.LoginUser;

import java.util.List;

public interface CustomerService{


    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> selectCustomerList(Customer customer, Long deptId);

    void addUser(Customer customer);



    int deleteCustomerById(Long[] ids);


    List<Customer> selectCustomerDept();

    int addCustomer(Customer customer, LoginUser loginUser);

    /**
     * 修改客户信息
     * @param customer
     * @param loginUser
     * @return
     */
    int updateCustomer(Customer customer, LoginUser loginUser);

    /**
     * 删除客户
     * @param ids
     * @param loginUser
     * @return
     */
    int deleteCustomer(List<Integer> ids, LoginUser loginUser);

    Customer selectByIdentity(String identity);

    List<AreaVo> selectArea();
}
